import { $get } from "./axios";

export function getDetailData(iid) {
  return $get("/detail", iid);
}
export class Goods {
  // 传入形参
  constructor(itemInfo, columns, services) {
    this.title = itemInfo.title;
    this.desc = itemInfo.desc;
    this.newPrice = itemInfo.price;
    this.oldPrice = itemInfo.highPrice;
    this.discount = itemInfo.discountDesc;
    this.discountBgColor = itemInfo.discountBgColor;
    this.realPrice = itemInfo.lowNowPrice;
    this.columns = columns;
    this.services = services;
  }
}
export class Shops {
  constructor(shopInfo) {
    this.shopLogo = shopInfo.shopLogo;
    this.name = shopInfo.name;
    this.goods = shopInfo.cGoods;
    this.sells = shopInfo.cSells;
    this.score = shopInfo.score;
    this.link = shopInfo.shopUrl;
  }
}
